export default {
    deleteMember(state, obj) {
        let index = state.member.findIndex(item => { return item.id === obj.id });
        state.member.splice(index, 1);
    },
    addMember(state, obj) {
        state.member.push(obj);
    },
    editMember(state, obj) {
        let index = state.member.findIndex(item => {
            return item.id === obj.id
        });
        state.member.splice(index, 1, obj);
    }
}